<template>
    <div class="add-friends">
        <back title="添加朋友"></back>
        <div class="add-friends-content">
            <search-input @hidesearch="hidesearch"></search-input>
        </div>

        <!--搜索-->
        <search v-show="showsearch" @hidesearch="hidesearch"></search>
    </div>
</template>

<script>
import search from '@/components/search'
import searchInput from '@/components/search/search'
export default {
    data(){
        return{
            searchval:'',
            showsearch:false
        }
    },
    components:{
        search,
        searchInput
    },
    methods:{
        hidesearch(){
            this.showsearch = !this.showsearch
        }
    }
}
</script>


<style lang="stylus">
.add-friends{
    padding-top:50px;
    min-height:100%;
    background:#f7f7f7;
    .add-friends-content{
        
    }
}
</style>
